package com.gopay.common.mq.producer;

import org.springframework.jms.core.JmsTemplate;

import javax.annotation.Resource;
import java.io.Serializable;

/**
 * Topic消息生产者
 */
public class TopicMsgProducer<T extends Serializable> extends AbstractMsgProducer<T>{

    @Override
    protected void beforeSendMsg(T msg) {
        logger.info("Before send message to Topic .");
    }
    @Override
    @Resource(name = "jmsTopicTemplate")
    public void setJmsTemplate(JmsTemplate jmsTemplate) {
        super.setJmsTemplate(jmsTemplate);
    }
}
